package com.lpit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lpit.pojo.Article;
import com.lpit.pojo.CommentReply;
import com.lpit.result.ResponseResult;
import org.springframework.web.bind.annotation.*;

public interface CommentManagementService extends IService<Article> {
    /**
     * 查询评论
     * @return
     */
    ResponseResult get(Integer id,Integer page,Integer pageSize);
    /**
     * 删除评论
     * @return
     */
    ResponseResult deleteComment(Integer id);

    /**
     * 评论置顶
     * @param id
     * @return
     */
    @PutMapping("/{id}")
    ResponseResult commentTop(Integer id);

    /**
     * 回复评论
     * @return
     */
    @PostMapping
    ResponseResult addComment(CommentReply commentReply);
}
